{{ extend "layout.html" }}

{{ block aside }}
	<div id="action_menu">
		<a href="{{=URL('appadmin', 'index')}}"><img src="{{=URL('static', 'sisadmin_32x32.png')}}" title="appadmin" /></a>
	</div>
{{ end }}

{{ block content }}
	
{{ if plugins: }}
	<h2>Unapproved Plugins</h2>
	
	<ul>
		{{ for plugin in plugins: }}
			<li>
				<a href="{{=URL('default', 'plugin', args=plugin.name)}}">{{=plugin.name}}</a>
				<p>Last updated: {{=plugin.modified_on.strftime(" %a %b %d %Y %I:%M %p")}}</p>
				<p>{{=plugin.short_description}}</p>
				<a href="{{=URL('default', 'download', args=plugin.demo_app)}}">Demo App Download</a>
				<a href="{{=URL('default', 'approve_demo', args=plugin.name)}}"><img src="{{=URL('static', 'adept_updater_32x32.png')}}" title="Approve demo"/></a>
			</li>
		{{ pass }}
	</ul>
{{ else: }}
	<h2>No unapproved plugins. Oh ya!</h2>
{{ pass }}
{{ end }}